页面<form=form1 action="传到页面路径?">

来源:百度知道 编辑:UC知道 时间:2024/04/30 03:58:21
我想本本页面文本框的值传到别一个页面,请问我form表单?号后应该跟什么

1.
<form name=form1 method=post action="a.asp?action=add"> '当然了这裏的action=add也可以写成:x=m,不过记得接收表单页面也要随著变化<%if request("x")="m" then%>
a.asp页面
<%
if request("action")="add" then
username=request.form("username")
......
end if
%>

2.
<form name=form1 method=post action="a.asp">
a.asp页面
<%
username=request.form("username")
......
%>

什么都不需要..只要在另一页面接收就好了

a=Request("文本框的ID")

不用..你给你的文本框一个name..
例如
<form name=form1 action="result.php" method="post">
<input type="text" name="username">
<input type="submit" name="submit">
后面一个页面.result.php就这样接受
<?php
$username=$_POST['username']; //前面一个是变量名.后面$_POST['']中的东
西就是你前面给你的文本框给的name..